home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
5_9.lha
/
5_9
/
5_9c1.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
607b
|
26 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ intset class as defined in section 5.3.2
lass intset
int cursize, maxsize;
int *x;
ublic:
// at most m ints in 1..n
friend void set_is(intset&, int m, int n);
friend void delete_is(intset&);
// is "t" a member?
friend int member_is(intset&, int t);
// add 't" to set
friend void insert_is(intset&, int t);
friend void iterate_is(intset&, int& i);
friend int ok_is(intset&, int& i);
friend int next_is(intset&, int& i);
;